package com.liang.lollipop.lreader.base;

import java.io.Serializable;

/**
 * Created by Lollipop on 2016/12/5.
 * 列表的基础bean
 */
public class BaseBean implements Serializable {
    public int type = 0;

    public BaseBean() {
    }

    public BaseBean(int type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseBean that = (BaseBean) o;

        return type == that.type;

    }

    @Override
    public int hashCode() {
        return type;
    }
}
